package com.zhuhjay.common.base.constant;

import java.util.concurrent.TimeUnit;

/**
 * @author ZhuHJay
 * @date 2023/2/25 10:37
 */
public class SecurityConstant {

    /** 认证头部 */
    public static final String AUTH_HEADER_KEY = "Authorization-GenericBoot";

    /** 认证响应承载头部 */
    public static final String AUTH_RES_TITLE = "Bearer ";

    /** 认证请求承载头部 */
    public static final String AUTH_REQ_TITLE = "Basic ";

    /** token 私钥 **/
    public static final String JWT_SECRET_KEY = "secret-key:zhuhjay";

    /** token过期时间 单位s **/
    public static final long JWT_EXPIRATION_TIME = 2 * 60 * 60;

    /** token过期时间单位 **/
    public static final TimeUnit JWT_EXPIRATION_TIME_UNIT = TimeUnit.SECONDS;

}
